import axios from 'axios';
import { ref } from 'vue';

//获取首页轮播图
const json = ref("/json")
const http = ref("/api/Image")//http://localhost:5031/api/Image
const httpItem = ref("/api/Flower")
export const getBanners = () => {
    return axios.get(json.value + "/banner.json");
}
export const getBannersApi = () => {
    return axios.get(http.value + '/GetImages');
}
export const getProductItems = () => {
    return axios.get(json.value + '/productItem.json');
}
export const getProductItemsApi = () => {
    return axios.get(httpItem.value + '/GetFlowers');
}